package com.dgt.trade.entitys;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户实体
 * 用户ID	id
 * 手机号	mobile
 * 密码 	password
 * 余额	balance
 * 添加时间	addTime
 * 更新时间	updateTime
 * 数据状态	dataStatus
 *
 * @date 2018-06-05
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    //用户ID
    private long id;
    //子账户代码
    private String subAccountID;
    //手机号
    private String mobile;
    //密码
    private String password;
    //余额
    private Float balance;
    //添加时间
    private Date addTime;
    //更新时间
    private Date updateTime;
    /**
     * 数据状态
     * 1:禁用，2:有效
     */
    private int dataStatus;
    //可出资金(单位:基础币种)
    private String availableFund;
    //占用保证金(单位:子账户的基础币种)
    private String marginFund;
    //子账户的基础币种
    private String baseCurrency;
    //执行汇率
    private String execRate;

    //getter setter

    public String getSubAccountID() {
        return subAccountID;
    }

    public void setSubAccountID(String subAccountID) {
        this.subAccountID = subAccountID;
    }

    public String getAvailableFund() {
        return availableFund;
    }

    public void setAvailableFund(String availableFund) {
        this.availableFund = availableFund;
    }

    public String getMarginFund() {
        return marginFund;
    }

    public void setMarginFund(String marginFund) {
        this.marginFund = marginFund;
    }

    public String getBaseCurrency() {
        return baseCurrency;
    }

    public void setBaseCurrency(String baseCurrency) {
        this.baseCurrency = baseCurrency;
    }

    public String getExecRate() {
        return execRate;
    }

    public void setExecRate(String execRate) {
        this.execRate = execRate;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getDataStatus() {
        return dataStatus;
    }

    public void setDataStatus(int dataStatus) {
        this.dataStatus = dataStatus;
    }

    //带参数的构造方法


    public User(long id, String mobile, String password, Float balance, Date addTime, Date updateTime, int dataStatus, String availableFund, String marginFund, String baseCurrency, String execRate) {
        this.id = id;
        this.mobile = mobile;
        this.password = password;
        this.balance = balance;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.dataStatus = dataStatus;
        this.availableFund = availableFund;
        this.marginFund = marginFund;
        this.baseCurrency = baseCurrency;
        this.execRate = execRate;
    }

    public User() {

    }

    @Override
    public String toString() {
        return "Member [id=" + id + ", mobile=" + mobile + ", password=" + password + ", balance=" + balance
                + ", addTime=" + addTime + ", updateTime=" + updateTime + ", dataStatus=" + dataStatus + "]";
    }

}